package com.oa.modules.approvalsec1.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.oa.modules.approvalsec1.entity.JointsEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 联合体
 *
 * @author Hankaicheng
 * @email 785297226@qq.com
 * @date 2022-05-05 15:23:15
 */
@Mapper
public interface JointsDao extends BaseMapper<JointsEntity> {
    /**
     * 查询总条数
     *
     * @author Hankaicheng
     * @email 785297226@qq.com
     * @date 2022-05-05 15:23:15
     * @Description 查询分页数据
     */
    long findPage(@Param("params") Map<String, Object> params);

    /**
     * 查询分页数据
     *
     * @author Hankaicheng
     * @email 785297226@qq.com
     * @date 2022-05-05 15:23:15
     * @Description 查询分页数据
     */
    List<JointsEntity> findRecords(IPage<JointsEntity> page, @Param("params") Map<String, Object> params);
}
